package group.hhsw.feign.clients;

import group.hhsw.common.model.params.RateAndTerm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient("productservice")
public interface ProductClient {
    @GetMapping("/product/getArea/{id}")
    String getArea(@PathVariable String id);

    @GetMapping("/product/getService/{id}")
    String getProService(@PathVariable String id);

    @GetMapping("/product/lock/inventory/{id}")
    Integer lockInventory(@PathVariable String id);

    @GetMapping("/product/getTerm/{id}")
    Integer getTerm(@PathVariable String id);

    @GetMapping("/product/getRateAndTerm/{id}")
    RateAndTerm getRateAndTerm(@PathVariable String id);

    @GetMapping("/product/getSinglePersonAmount/{id}")
    Long getSinglePersonAmount(@PathVariable String id);

    @GetMapping("/product/getSingleDayLimit/{id}")
    Long getSingleDayLimit(@PathVariable String id);

}
